/** local storage util */

const set = (key, value) => {
  wx.setStorage({
    key: key,
    data: value,
    success: function() {
      console.log(`set local storage[key: ${key}, value: ${value}] success.`);
    },
    fail: function() {
      console.log(`set local storage[key: ${key}, value: ${value}] fail.`);
    }
  });
};

const remove = key => {
  wx.removeStorageSync(key);
}



module.exports = {
  set, remove
}